package com.xb.loan.admin.service.rolemanager;


import com.xb.loan.admin.bean.system.OssRole;
import com.xb.loan.log.exception.BizException;

import java.util.List;


public interface RoleManagerService {

	public String saveOrUpdateRole(String type, String roleId, String roleName,
                                   String[] partnerIdArray, String[] menuIdArray, String partnerRoleId) throws BizException;

	public List<OssRole> queryOssRoleByPage(String parentRoleId, int pageSize, int pageNum);
    
    public int queryOssRoleCount(String parentRoleId);
    
    public void deleteByRoleId(String roleId) throws BizException;
    
    List<String> queryMenuIdListByRoleId(String roleId);

    /**
    
    /**
     * 根据操作编码查询菜单编码
     * @param operatorId    操作员编码
     * @return
     * 2015年12月15日 by wuqinglong
     */
    List<String> queryMenuIdListByOperatorId(String operatorId);
    
    int queryOperatorRoleCountByRoleId(String roleId);
}
